package com.greate.community.entity.admin_master;

import com.greate.community.entity.Role;

import java.util.List;

/**
 * 角色所需要的权限信息
 */
public class RoleNeedPermission {

    private Role role;

    private List<Integer> permissions;

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public List<Integer> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Integer> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "RoleNeedPermission{" +
                "role=" + role.toString() +
                ", permissions=" + permissions +
                '}';
    }
}
